package com.abiao.shop.controller;

import com.abiao.shop.pojo.User;
import com.abiao.shop.result.Result;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Description: UserController
 * @Author: AB
 * @Date: 2021-07-18
 * @Version:v1.0
 */
@Controller
public class UserController {

    //用户获取测试接口
    @RequestMapping("/user_info")
    @ResponseBody
    public Result<User> getUser(Model model, User user){
        return Result.success(user);
    }
}
